package com.jx.flowershopmanager.entity;

import java.util.Date;

public class ProductEntity {

    /// 商品Id
    private int id;
    /// 商品名字
    private String name;
    /// 商品描述
    private String describe;
    /// 商品库存
    private int stock;
    /// 商品图片链接
    private String url;
    /// 售出
    private int sold;
    /// 上架时间
    private String createAt;
    /// 更新时间
    private String updateAt;


    /// 空构造函数
    public ProductEntity() {
    }

    /// 带参构造函数
    public ProductEntity(int id, String name, String describe, int stock, String url, int sold, String createAt, String updateAt) {
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.stock = stock;
        this.url = url;
        this.sold = sold;
        this.createAt = createAt;
        this.updateAt = updateAt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getSold() {
        return sold;
    }

    public void setSold(int sold) {
        this.sold = sold;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public String getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(String updateAt) {
        this.updateAt = updateAt;
    }
}
